<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>欣雨防伪溯源系统</title>
    <!--引入统一头-->
    <head th:include="import/head::head"></head>
</head>
<body>`


<div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin" style="margin: 20px auto;">
    <div class="layui-form-item">
        <label class="layui-form-label">商品名称</label>
        <div class="layui-input-inline">
            <span th:text="${commodity.name}"></span>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">产地</label>
        <div class="layui-input-inline">
            <span th:text="${commodity.place}"></span>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">经销商</label>
        <div class="layui-input-inline">
            <span th:text="${commodity.distributor}"></span>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">单价</label>
        <div class="layui-input-inline">
            <span th:text="${commodity.unitPrice}"></span>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">查看次数</label>
        <div class="layui-input-inline">
            <span th:text="${commodity.scanCount}"></span>次
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">商品图片</label>
        <div class="layui-input-inline">
            <img th:each="item:${commodityPicList}" th:src="@{'/commodityPic/'+ ${item.id} + '/view'}">
        </div>
    </div>
</div>

<script th:replace="import/script::script"></script>
<script>
    layui.use(['form', 'upload', 'element'], function () {
        var $ = layui.$;
        var upload = layui.upload; //得到 upload 对象
        var element = layui.element;
    });
</script>
</body>
</html>
